<#include "/common/layout_dl.html">
    <@header>
</@header>
<@body>
    <section class="content">
        <!-- Your Page Content Here -->
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <form action="/player/withdrawRecord/${(playerId)!}/1" method="post" class="form-inline">
                        <div class="box-header">
                            <div class="input-group pull-right">
                                <button type="button" class="btn btn-primary btn-flat" onclick="exportTo('提现记录');"><i
                                        class="fa fa-file-excel-o"></i> 导出
                                </button>
                            </div>
                        </div><!-- /.box-header -->
                    </form>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tr>
                                <th>提现时间</th>
                                <th>提现金额</th>
                                <th>结算状态</th>
                                <th width="120px">操作</th>
                            </tr>
                            <#list pageData.getRecords() as item>
                                <tr>
                                    <td>${(item.createTime)!}</td>
                                    <td>${(item.money)!}</td>
                                    <#if item.handleStatus == 'YES'>
                                        <td>已结算</td>
                                    <#else>
                                        <td>未结算</td>
                                    </#if>
                                    <td>
                                    <@shiro.hasPermission name="withdrawSettle">
                                        <#if item.handleStatus == 'YES'>
                                            <a class="btn btn-default btn-xs"
                                               data-tiggle="ajax"
                                               data-submit-url="/data/withdraw/cancelSettle?id=${(item.id)!}"
                                               data-confirm="您确定要恢复该提现申请吗?"><i class="fa fa-times"></i> 取消</a>
                                        <#else>
                                            <a class="btn btn-danger btn-xs"
                                               data-tiggle="ajax"
                                               data-submit-url="/data/withdraw/settle?id=${(item.id)!}"
                                               data-confirm="您确定要结算该提现申请吗?"><i class="fa fa-times"></i> 结算</a>
                                            <a class="btn btn-default btn-xs" target="_blank" href="${(item.qrcode)!}">
                                                提现码
                                            </a>
                                        </#if>
                                    </@shiro.hasPermission>
                                    </td>
                                </tr>
                            </#list>
                        </table>
                    </div><!-- /.box-body -->
                    <div class="box-footer row">
                        <div class="col-md-6">
                            <#include "/common/paginateBar.html" />
                            <@paginate pageData=pageData actionUrl="/player/withdrawRecord/${(playerId)!}/" />
                        </div>
                        <div class="col-md-6 pull-left">
                            <#include "/common/paginate.html" />
                            <@paginate currentPage=pageData.getCurrent() totalPage=pageData.getPages()
                            actionUrl="/player/withdrawRecord/${(playerId)!}/" urlParas="?pageSize=${pageSize!}" />
                        </div>
                    </div>
                </div><!-- /.box -->
            </div>
        </div>
    </section><!-- /.content -->
</@body>
<@footer>
</@footer>